# 八通道-01
data = b'{"data_type":"data","data":' \
       b'"{\\"device_type\\":\\"dev_type\\",\\"device_code\\":\\"dev_name\\",' \
       b'\\"data\\":\\"{\\\\\\"01_pdData\\\\\\":[' \
       b'{\\\\\\"channel_number\\\\\\":1,\\\\\\"amplitude\\\\\\":devch1_amp,\\\\\\"frequency\\\\\\":devch1_frequency,\\\\\\"energy\\\\\\":16017,\\\\\\"alarm\\\\\\":devch1_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch1_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch1_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch1_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch1_ch1_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":2,\\\\\\"amplitude\\\\\\":devch2_amp,\\\\\\"frequency\\\\\\":devch2_frequency,\\\\\\"energy\\\\\\":16001,\\\\\\"alarm\\\\\\":devch2_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch2_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch2_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch2_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch2_ch2_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":3,\\\\\\"amplitude\\\\\\":devch3_amp,\\\\\\"frequency\\\\\\":devch3_frequency,\\\\\\"energy\\\\\\":17016,\\\\\\"alarm\\\\\\":devch3_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch3_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch3_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch3_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch3_ch3_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":4,\\\\\\"amplitude\\\\\\":devch4_amp,\\\\\\"frequency\\\\\\":devch4_frequency,\\\\\\"energy\\\\\\":18026,\\\\\\"alarm\\\\\\":devch4_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch4_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch4_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch4_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch4_ch4_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":5,\\\\\\"amplitude\\\\\\":devch5_amp,\\\\\\"frequency\\\\\\":devch5_frequency,\\\\\\"energy\\\\\\":17368,\\\\\\"alarm\\\\\\":devch5_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch5_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch5_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch5_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch5_ch5_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":6,\\\\\\"amplitude\\\\\\":devch6_amp,\\\\\\"frequency\\\\\\":devch6_frequency,\\\\\\"energy\\\\\\":18935,\\\\\\"alarm\\\\\\":devch6_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch6_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch6_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch6_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch6_ch6_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":7,\\\\\\"amplitude\\\\\\":devch7_amp,\\\\\\"frequency\\\\\\":devch7_frequency,\\\\\\"energy\\\\\\":19632,\\\\\\"alarm\\\\\\":devch7_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch7_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch7_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch7_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch7_ch7_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":8,\\\\\\"amplitude\\\\\\":devch8_amp,\\\\\\"frequency\\\\\\":devch8_frequency,\\\\\\"energy\\\\\\":17789,\\\\\\"alarm\\\\\\":devch8_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[devch8_ch1_amplist],\\\\\\"ch2_amplitudeArray\\\\\\":[devch8_ch2_amplist],\\\\\\"ch3_amplitudeArray\\\\\\":[devch8_ch3_amplist],\\\\\\"phaseArray\\\\\\":[devch8_ch8_phase]}],' \
       b'\\\\\\"01_tempData\\\\\\":[' \
       b'{\\\\\\"channel\\\\\\":1,\\\\\\"temp\\\\\\":temp_ch1,\\\\\\"alarm\\\\\\":alarm_t_ch1},' \
       b'{\\\\\\"channel\\\\\\":2,\\\\\\"temp\\\\\\":temp_ch2,\\\\\\"alarm\\\\\\":alarm_t_ch2},' \
       b'{\\\\\\"channel\\\\\\":3,\\\\\\"temp\\\\\\":temp_ch3,\\\\\\"alarm\\\\\\":alarm_t_ch3}]}\\"}",' \
       b'"update_time":"up_time"}'

# 三通道-02
data = b'{"data_type":"data",' \
       b'"data":"{\\"device_type\\":\\"dev_type\\",\\"device_code\\":\\"dev_name\\",' \
       b'\\"data\\":\\"[' \
       b'{\\\\\\"channel_number\\\\\\":1,\\\\\\"amplitude\\\\\\":ch1_amplitude_v,\\\\\\"frequency\\\\\\":ch1_frequency,\\\\\\"energy\\\\\\":477413,\\\\\\"alarm\\\\\\":ch1_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[ch1_ch1_amp],\\\\\\"ch2_amplitudeArray\\\\\\":[ch1_ch2_amp],\\\\\\"ch3_amplitudeArray\\\\\\":[ch1_ch3_amp],\\\\\\"phaseArray\\\\\\":[ch1_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":2,\\\\\\"amplitude\\\\\\":ch2_amplitude_v,\\\\\\"frequency\\\\\\":ch2_frequency,\\\\\\"energy\\\\\\":30496,\\\\\\"alarm\\\\\\":ch2_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[ch2_ch1_amp],\\\\\\"ch2_amplitudeArray\\\\\\":[ch2_ch2_amp],\\\\\\"ch3_amplitudeArray\\\\\\":[ch2_ch3_amp],\\\\\\"phaseArray\\\\\\":[ch2_phase]},' \
       b'{\\\\\\"channel_number\\\\\\":3,\\\\\\"amplitude\\\\\\":ch3_amplitude_v,\\\\\\"frequency\\\\\\":ch3_frequency,\\\\\\"energy\\\\\\":336578,\\\\\\"alarm\\\\\\":ch3_alarm,\\\\\\"ch1_amplitudeArray\\\\\\":[ch3_ch1_amp],\\\\\\"ch2_amplitudeArray\\\\\\":[ch3_ch2_amp],\\\\\\"ch3_amplitudeArray\\\\\\":[ch3_ch3_amp],\\\\\\"phaseArray\\\\\\":[ch3_phase]}' \
       b']\\"}","update_time":"up_time"}'

# 485超声地电二合一-04
data = b'{"data_type":"data",' \
       b'"data":"{\\"device_type\\":\\"dev_type\\",\\"device_code\\":\\"dev_name\\",' \
       b'\\"data\\":\\"{\\\\\\"04_data\\\\\\":' \
       b'{\\\\\\"aa\\\\\\":{\\\\\\"aa_map\\\\\\":{\\\\\\"aa_amp\\\\\\":aa_amp_list,\\\\\\"aa_phase\\\\\\":aa_phase_list},' \
       b'\\\\\\"aa_data\\\\\\":{\\\\\\"aa_peak_amp\\\\\\":aa_amp_max,\\\\\\"aa_mean_value\\\\\\":15.22,\\\\\\"aa_noise_mean\\\\\\":-10,\\\\\\"aa_frequency\\\\\\":aa_fre_val,\\\\\\"aa_pulse_cycle\\\\\\":5,\\\\\\"aa_50Hz\\\\\\":0,\\\\\\"aa_100Hz\\\\\\":0,\\\\\\"aa_alarm\\\\\\":aa_alarm_value,\\\\\\"aa_forewarning\\\\\\":1,\\\\\\"aa_effective_value\\\\\\":0,\\\\\\"aa_noise_level\\\\\\":0,\\\\\\"aa_status\\\\\\":0}},' \
       b'\\\\\\"tev\\\\\\":{\\\\\\"tev_map\\\\\\":{\\\\\\"tev_amp\\\\\\":tev_amp_list,\\\\\\"tev_phase\\\\\\":tev_phase_list},' \
       b'\\\\\\"tev_data\\\\\\":{\\\\\\"tev_peak_amp\\\\\\":tev_amp_max,\\\\\\"tev_mean_value\\\\\\":30.67,\\\\\\"tev_noise_mean\\\\\\":22.9,\\\\\\"tev_frequency\\\\\\":tev_fre_val,\\\\\\"tev_pulse_cycle\\\\\\":6,\\\\\\"tev_50Hz\\\\\\":0,\\\\\\"tev_100Hz\\\\\\":0,\\\\\\"tev_alarm\\\\\\":tev_alarm_value,\\\\\\"tev_forewarning\\\\\\":1,\\\\\\"tev_effective_value\\\\\\":0,\\\\\\"tev_noise_level\\\\\\":0,\\\\\\"tev_status\\\\\\":0}}}}\\"}","update_time":"up_time"}'

# 无线测温-10
data = b'{"data_type":"data",' \
       b'"data":"{\\"device_type\\":\\"dev_type\\",\\"device_code\\":\\"dev_name\\",' \
       b'\\"data\\":\\"[temp_data_list]\\"}",' \
       b'"update_time":"up_time"}'
# temp_case = '{\\\\\\\\\\\\\\"channel_number\\\\\\\\\\\\\\":temp_ch_num,' \
#                     '\\\\\\\\\\\\\\"temp\\\\\\\\\\\\\\":temp_value,' \
#                     '\\\\\\\\\\\\\\"alarm\\\\\\\\\\\\\\":temp_alarm}'

# 环流-12
data = b'{"data_type":"data",' \
       b'"data":"{\\"device_type\\":\\"dev_type\\",\\"device_code\\":\\"dev_name\\",' \
       b'\\"data\\":\\"[' \
       b'{\\\\\\"channel_number\\\\\\":1,\\\\\\"cc\\\\\\":cc1,\\\\\\"alarm\\\\\\":cc_al_1},' \
       b'{\\\\\\"channel_number\\\\\\":2,\\\\\\"cc\\\\\\":cc2,\\\\\\"alarm\\\\\\":cc_al_2},' \
       b'{\\\\\\"channel_number\\\\\\":3,\\\\\\"cc\\\\\\":cc3,\\\\\\"alarm\\\\\\":cc_al_3},' \
       b'{\\\\\\"channel_number\\\\\\":4,\\\\\\"cc\\\\\\":cc4,\\\\\\"alarm\\\\\\":cc_al_4}' \
       b']\\"}",' \
       b'"update_time":"up_time"}'

# 南网新设备-27
data = (b'{"data_type": "data", '
        b'"data": "{\\"device_type\\": \\"device_type\\", \\"device_code\\": \\"device_code\\", '
        b'\\"data\\": \\"['
        b'{\\\\\\"data_time\\\\\\": \\\\\\"data_time\\\\\\", '
        b'\\\\\\"voltage_data\\\\\\": {\\\\\\"voltage\\\\\\": \\\\\\"voltage\\\\\\", \\\\\\"alarm\\\\\\": \\\\\\"voltage_alarm\\\\\\"}, '
        b'\\\\\\"tev_data\\\\\\": {\\\\\\"peak_value\\\\\\": \\\\\\"peak_value\\\\\\", \\\\\\"discharge_average\\\\\\": \\\\\\"discharge_average\\\\\\", \\\\\\"noise_level\\\\\\": \\\\\\"noise_level\\\\\\", \\\\\\"pulse_per_cycle\\\\\\": \\\\\\"pulse_per_cycle\\\\\\", \\\\\\"frequency\\\\\\": \\\\\\"frequency\\\\\\", \\\\\\"50_hz\\\\\\": \\\\\\"hz_50\\\\\\", \\\\\\"100_hz\\\\\\": \\\\\\"hz_100\\\\\\", \\\\\\"warning\\\\\\": \\\\\\"pd_warning\\\\\\", \\\\\\"alarm\\\\\\": \\\\\\"pd_alarm\\\\\\"}, '
        b'\\\\\\"temp_data\\\\\\": {\\\\\\"env_temp\\\\\\": \\\\\\"env_temp\\\\\\", \\\\\\"cable_temp_diff_warning\\\\\\": \\\\\\"cable_temp_diff_warning\\\\\\", \\\\\\"cable_temp_diff_alarm\\\\\\": \\\\\\"cable_temp_diff_alarm\\\\\\", \\\\\\"cable_temp\\\\\\": \\\\\\"cable_temp\\\\\\", \\\\\\"cable_temp_warning\\\\\\": \\\\\\"cable_temp_warning\\\\\\", \\\\\\"cable_temp_alarm\\\\\\": \\\\\\"cable_temp_alarm\\\\\\"}, '
        b'\\\\\\"water_data\\\\\\": {\\\\\\"water_status\\\\\\": \\\\\\"water_status\\\\\\"}}]\\"}", '
        b'"update_time": "2024-08-06 11:37:23"}')
